The Week View component > FWeekView.nextWeek() |
FWeekView.nextWeek()
Availability
Flash Player 6.
Usage
myWeekView_wkv.nextWeek ()
Parameters
none
Returns
Nothing.
Description
Moves the Week View component forward one week. This will cause the onChangeHandler function to be called.
Example
The following code sets the selected date to the current date and then moves forward and back a week.
var today = new Date( ); myWeekView_wkv.setSelectedDate( today ); myWeekView_wkv.nextWeek( ); trace( "Week: " + myWeekView_wkv.getSelectedDate( ).getDate( ) ); //will trace the following weeks date. myWeekView_wkv.previousWeek( ); trace( "Week: " + myWeekView_wkv.getSelectedDate( ).getDate( ) ); //will trace the today's date.
See also